<?php

namespace app\common\model;

use think\Model;

class PayApply extends Model
{
    // 表名
    protected $name = 'pay_apply';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;
  // 追加属性
  protected $append = [

];

public function project()
{
    return $this->belongsTo('PayProject', 'projectid', 'id');
}

public function paylog()
{
  return $this->hasMany('PayApplyLog', 'applyid', 'id');
}
}
